package com.awcall.iot.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 财务系统管理表
 * </p>
 *
 * @author wuhui
 * @since 2018-03-29
 */
@TableName("bd_fiance_total")
public class FianceTotal extends Model<FianceTotal> {

    private static final long serialVersionUID = 1L;

	private Integer id;
    /**
     * 项目名称
     */
	private String name;
    /**
     * 唯一编码
	 */
	private String code;
    /**
     * 公司名称
     */
	private String company;
    /**
     * 手机号
     */
	private String telephone;
    /**
     * 姓名
     */
	@TableField("user_name")
	private String userName;
    /**
     * 支付时间
     */
	private Date paytime;
    /**
     * 到期时间
     */
	private Date endtime;
    /**
     * 类型(1启动 2欠费 3停止)
     */
	private Integer type;
    /**
     * 地址
     */
	private String ip;
	@TableField(value = "created_at", fill = FieldFill.INSERT)
	private Date createdAt;
	@TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
	private Date updatedAt;


	public Integer getId() {
		return id;
	}

	public FianceTotal setId(Integer id) {
		this.id = id;
		return this;
	}

	public String getName() {
		return name;
	}

	public FianceTotal setName(String name) {
		this.name = name;
		return this;
	}

	public String getCode() { return code; }

	public FianceTotal setCode(String code) {
		this.code = code;
		return this;
	}

	public String getCompany() {
		return company;
	}

	public FianceTotal setCompany(String company) {
		this.company = company;
		return this;
	}

	public String getTelephone() {
		return telephone;
	}

	public FianceTotal setTelephone(String telephone) {
		this.telephone = telephone;
		return this;
	}

	public String getUserName() {
		return userName;
	}

	public FianceTotal setUserName(String userName) {
		this.userName = userName;
		return this;
	}

	public Date getPaytime() {
		return paytime;
	}

	public FianceTotal setPaytime(Date paytime) {
		this.paytime = paytime;
		return this;
	}

	public Date getEndtime() {
		return endtime;
	}

	public FianceTotal setEndtime(Date endtime) {
		this.endtime = endtime;
		return this;
	}

	public Integer getType() {
		return type;
	}

	public FianceTotal setType(Integer type) {
		this.type = type;
		return this;
	}

	public String getIp() {
		return ip;
	}

	public FianceTotal setIp(String ip) {
		this.ip = ip;
		return this;
	}

	public Date getCreatedAt() {
		return createdAt;
	}

	public FianceTotal setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
		return this;
	}

	public Date getUpdatedAt() {
		return updatedAt;
	}

	public FianceTotal setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
		return this;
	}

	public static final String ID = "id";

	public static final String NAME = "name";

	public static final String CODE	= "code";

	public static final String COMPANY = "company";

	public static final String TELEPHONE = "telephone";

	public static final String USER_NAME = "user_name";

	public static final String PAYTIME = "paytime";

	public static final String ENDTIME = "endtime";

	public static final String TYPE = "type";

	public static final String IP = "ip";

	public static final String CREATED_AT = "created_at";

	public static final String UPDATED_AT = "updated_at";

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "FianceTotal{" +
			", id=" + id +
			", name=" + name +
			", code=" + code +
			", company=" + company +
			", telephone=" + telephone +
			", userName=" + userName +
			", paytime=" + paytime +
			", endtime=" + endtime +
			", type=" + type +
			", ip=" + ip +
			", createdAt=" + createdAt +
			", updatedAt=" + updatedAt +
			"}";
	}
}
